.loginWrap {
  width: 100vw;
  height: 100vh;
  background: linear-gradient(180deg, #a0d7e7, #6c5dd3);
  overflow: hidden;
  display: flex;
  justify-content: flex-end;
  //align-content: center;
  align-items: center;

  .loginCard {
    width: 400px;
    height: 100vh;
    background: #f2f3f7;
    //border-radius: 20px;
    display: flex;
    flex-direction: column;
    text-align: center;
    justify-content: center;
    align-items: center;
    padding: 30px 40px;
    position: relative;

    .heard {
      position: absolute;
      display: flex;
      top: 20px;
    }

    .title {
      width: 260px;
      font-size: 30px;
      line-height: 2.2;
      font-family: Arial;
      font-weight: bold;
      color: #151830;
    }

    .cloud {
      width: 100px;
      height: 72px;
      line-height: 72px;
      background: url('../../assets/images/cloud.png') no-repeat;
      background-size: 100% 100%;
    }

    .cloud img {
      width: 30px;
      height: 30px;
    }

    .loginFooter {
      width: 100%;
      display: flex;
      justify-content: space-between;
      font-size: 14px;
      color: gray;

      div {
        cursor: pointer;

        &:hover {
          color: #6c5dd3;
        }
      }
    }
  }

  .loginButton {
    width: 320px;
    height: 40px;
    background: #6c5dd3;
    border-radius: 12px;
    border: none !important;
  }

  :global {
    .ant-form-item-explain-error {
      text-align: left !important;
    }

    :where(.css-dev-only-do-not-override-1okl62o).ant-btn-primary:not(
        :disabled
      ):not(.ant-btn-disabled):hover {
      background-color: #797bd8;
    }
  }
}

.registerContainer {
  min-height: 100vh;
  background: #f0f2f5;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.registerContent {
  width: 100%;
  max-width: 1200px;
  min-height: 600px;
  background: #fff;
  border-radius: 24px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
  display: flex;
  overflow: hidden;
}

.leftPanel {
  width: 50%;
  padding: 48px;
  display: flex;
  flex-direction: column;
  position: relative;
  background: #fff;

  .header {
    text-align: center;
    margin-bottom: 40px;

    .logo {
      height: 48px;
      margin-bottom: 24px;
    }

    h2 {
      font-size: 28px;
      font-weight: 600;
      color: #001529;
      margin-bottom: 12px;
    }

    p {
      color: rgba(0, 0, 0, 0.45);
      font-size: 16px;
    }
  }
}

.rightPanel {
  width: 50%;
  background: linear-gradient(135deg, #00264d 0%, #004d99 100%);
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 48px;

  .circle1, .circle2, .circle3 {
    position: absolute;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.1);
  }

  .circle1 {
    width: 500px;
    height: 500px;
    top: -250px;
    right: -250px;
    animation: rotate 30s linear infinite;
  }

  .circle2 {
    width: 300px;
    height: 300px;
    bottom: -150px;
    left: -150px;
    animation: rotate 20s linear infinite reverse;
  }

  .circle3 {
    width: 200px;
    height: 200px;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    animation: pulse 4s ease-in-out infinite;
  }

  .gridBackground {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image:
      linear-gradient(rgba(255, 255, 255, 0.05) 1px, transparent 1px),
      linear-gradient(90deg, rgba(255, 255, 255, 0.05) 1px, transparent 1px);
    background-size: 20px 20px;
    opacity: 0.5;
  }

  .content {
    position: relative;
    z-index: 1;
    color: white;
    text-align: center;

    h1 {
      font-size: 36px;
      font-weight: bold;
      margin-bottom: 48px;
      background: linear-gradient(to right, #fff, #99ccff);
      -webkit-background-clip: text;
      -webkit-text-fill-color: transparent;
    }
  }

  .features {
    display: flex;
    flex-direction: column;
    gap: 32px;
  }

  .featureItem {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    backdrop-filter: blur(10px);
    transition: all 0.3s;

    &:hover {
      transform: translateX(10px);
      background: rgba(255, 255, 255, 0.15);
    }

    .featureIcon {
      font-size: 24px;
      width: 48px;
      height: 48px;
      background: rgba(255, 255, 255, 0.2);
      border-radius: 12px;
      display: flex;
      align-items: center;
      justify-content: center;
    }

    .featureText {
      text-align: left;

      h3 {
        color: white;
        margin-bottom: 4px;
        font-size: 18px;
      }

      p {
        color: rgba(255, 255, 255, 0.8);
        margin: 0;
      }
    }
  }
}

.registerForm {
  flex: 1;
  display: flex;
  flex-direction: column;

  :global {
    .ant-form-item {
      margin-bottom: 24px;
    }

    .ant-input-affix-wrapper {
      height: 48px;
      padding: 4px 16px;
      border-radius: 12px;
      border: 1px solid #e8e8e8;
      transition: all 0.3s;

      &:hover, &:focus {
        border-color: #004d99;
        box-shadow: 0 0 0 2px rgba(0, 77, 153, 0.1);
      }
    }

    .ant-input-prefix {
      color: #004d99;
      font-size: 18px;
      margin-right: 12px;
    }
  }
}

.registerButton {
  height: 48px;
  font-size: 16px;
  background: linear-gradient(135deg, #004d99 0%, #0066cc 100%);
  border: none;
  border-radius: 12px;
  margin-top: 12px;

  &:hover {
    background: linear-gradient(135deg, #003d7a 0%, #0052a3 100%) !important;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 77, 153, 0.2);
  }
}

.footer {
  text-align: center;
  margin-top: 24px;
  color: rgba(0, 0, 0, 0.45);

  .loginBtn {
    color: #004d99;
    font-weight: 500;

    &:hover {
      color: #0066cc;
    }
  }
}

@keyframes rotate {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

@keyframes pulse {
  0%, 100% { transform: translate(-50%, -50%) scale(1); opacity: 0.5; }
  50% { transform: translate(-50%, -50%) scale(1.2); opacity: 0.8; }
}
